import builder from '../components/builder.vue'
import formRender from '../components/formRender.vue'

const dgFormBuilder = {
  install (Vue){
    Vue.component('dgFormBuilder', builder)
  }
}

const dgFormRender = {
  install (Vue){
    Vue.component('dgFormRender', formRender)
  }
}

if (typeof window !== 'undefined' && window.Vue){
  window.Vue.use(dgFormBuilder)
  window.Vue.use(dgFormRender)
}
const dgForm = {
  dgFormBuilder,
  dgFormRender
}
export default dgForm